﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainingWorkshop.DAL_EF.Translator
{
   public  class CourseTranslator
    {
       public static Course ModelCourseToEF(Model.Course c)
       {
         Course courseEF=new Course();

         if (c!=null)
         {
             courseEF.CourseId = c.CourseId;
             courseEF.CourseName = c.CourseName;
             courseEF.CourseStatus = c.CourseStatus;
                     
             courseEF.TeacherId = c.Teacher.TeacherId;
             courseEF.LevelId = c.Level.LevelId;
             
         }
         return courseEF;
       }
    }

}
